<template>
  <div id="blank-layout">
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component" :key="this.$route.name" v-if="this.$route.meta.keepAlive"/>
      </keep-alive>
      <component :is="Component" :key="this.$route.name" v-if="!this.$route.meta.keepAlive"/>
    </router-view>
  </div>
</template>

<script>
  export default {
    name: 'BlankLayout'
  }
</script>

<style lang="less" scoped>
  #blank-layout {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #F6F6F6;
  }
</style>
